package com.googlecode.bip.entity;

import java.sql.Timestamp;

import com.googlecode.bip.entity.impl.EntityHelper;

public interface ISurveyMetaData extends ISurveyEntry {
	
	/**
	 * Get the date of the last modification
	 * @return A normalized Timestamp see {@link EntityHelper#getNormalizedTimestamp(java.util.Date)}
	 */
	public Timestamp getUserDate();
	
	/**
	 * Set the date of the last modification
	 * @param date A normalized Timestamp see {@link EntityHelper#getNormalizedTimestamp(java.util.Date)}
	 */
	public void setUserDate(Timestamp date);
	
	/**
	 * Get the total number of questions the survey contains
	 * @return The number of questions to be answered
	 */
	public int getNumberOfQuestions();
	
	/**
	 * Set the total number of questions the survey contains
	 * @param numnberOfQuestions The number of questions
	 */
	public void setNumberOfQuestions(int numnberOfQuestions);
	
	/**
	 * Get the total number of answers already filled
	 * @return The number of answered questions
	 */
	public int getNumberOfAnswers();
	
	/**
	 * Set the number of answered questions
	 * @param numberOfAnswers The number of answered questions
	 */
	public void setNumberOfAnswers(int numberOfAnswers);
	
}
